package com.itkm.entity;

import lombok.Getter;

@Getter
public enum AuthorityEnum {
    UNKNOWN(0),
    COMMON(1),
    VIP(2);

    AuthorityEnum(int id) {
        this.id = id;
        this.authority = "ROLE_" + this.name().toLowerCase();
    }

    private final Integer id;
    private final String authority;
}
